package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.vo.DangKouTongJiInfo;
import com.ruoyi.system.domain.vo.DongKouTongJiDetail;
import com.ruoyi.system.domain.vo.GongYingShangTongJiDetail;
import com.ruoyi.system.mapper.DingDanDetailMapper;
import com.ruoyi.system.mapper.TongJiMapper;
import com.ruoyi.system.service.ITongJiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author qbf
 * 数据统计
 */
@Service
public class TongJiServiceImpl implements ITongJiService {

    @Resource
    private TongJiMapper tongJiMapper;

    @Resource
    private DingDanDetailMapper dingDanDetailMapper;

    @Override
    public List<DongKouTongJiDetail> dangKouTongJi(Long id, String startDay, String endDay) {
        return tongJiMapper.dangKouTongJi(id, startDay, endDay);
    }

    @Override
    public List<GongYingShangTongJiDetail> gongYingShangTongJi(Long id, String startDay, String endDay) {
        return tongJiMapper.gongYingShangTongJi(id, startDay, endDay);
    }
}
